Skip to content

fix(tooling): align Ruff with Python 3.11#318

Open
manzuoni-astera wants to merge 1 commit into
diff-use:mainfrom
manzuoni-astera:michaelanzuoni/issue-311-python-target
Open

fix(tooling): align Ruff with Python 3.11#318
manzuoni-astera wants to merge 1 commit into
diff-use:mainfrom
manzuoni-astera:michaelanzuoni/issue-311-python-target

Conversation

@manzuoni-astera

Copy link
Copy Markdown
Contributor

Summary

  • align Ruff's target version with the project's declared Python 3.11 minimum
  • stop Ruff from recommending PEP 695 generic syntax that is a syntax error on a supported Python version
  • retain the compatible TypeVar form until Python 3.11 support is intentionally dropped

Closes #311

Validation

  • ruff check .
  • ruff format --check . (144 files already formatted)
  • parsed pyproject.toml with Python tomllib
  • git diff --check

Copilot AI review requested due to automatic review settings July 13, 2026 20:06
@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@manzuoni-astera, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 20 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 0e5f52ef-558d-42a9-8aa2-35ab2c87c92b

📥 Commits

Reviewing files that changed from the base of the PR and between 063f519 and a94a361.

📒 Files selected for processing (1)
  • pyproject.toml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Aligns Ruff’s configured target-version with the project’s declared Python support (minimum 3.11), preventing Ruff from suggesting PEP 695 type-parameter syntax that would be invalid for the supported runtime range.

Changes:

  • Set Ruff target-version from py312 to py311 to match requires-python = ">= 3.11, <3.14".

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@marcuscollins marcuscollins left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update to use newer type parameters

4 participants